package com.atguigu.crowd.funding.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 信息解析类
 * @author Administrator
 *
 */
public class CrowdFundingConstant {

	public static final String ATTR_NAME_MESSAGE = "MESSAGE";
	public static final String ATTR_NAME_LOGIN_ADMIN = "LOGIN-ADMIN";
	public static final String ATTR_NAME_PAGEINFO = "PAGEINFO";
	public static final String ATTR_NAME_ADMINPAGE = "ADMINPAGE";
	
	public static final String MESSAGE_LOGIN_FAILED = "帐号或密码错误";
	public static final String MESSAGE_CODE_INVALID = "明文不是有效字符串，请核对后再操作";
	public static final Object MESSAGE_ACCESS_DENIED = "请先登录";
	
	//优化异常提示信息
	public static final Map<String,String> EXCEPTION_MSG_MAP = new HashMap<String, String>();
	static{
		EXCEPTION_MSG_MAP.put("java.lang.ArithmeticException", "系统在进行数学运算时发生错误");
		EXCEPTION_MSG_MAP.put("java.lang.RuntimeException", "系统在运行时发生错误");
		//EXCEPTION_MSG_MAP.put("com.atguigu.crowd.funding.exception.LoginException", "登录过程中运行错误");
	}
}
